const SentryCliPlugin = require('@sentry/webpack-plugin');
module.exports = function override(config, env) {
  config.devtool = 'source-map';
  config.plugins.push(
    new SentryCliPlugin({
      release: '0.0.1',
      authToken: '5fb35ec639e34106a8f4842f26f9e958bb33a3d5bbb24efe9e73cd56c75abfc5',
      url: 'http://127.0.0.1:9000',
      org: 'sentry',
      project: 'create-react-demo',
      urlPrefix: '~/',
      include: './build',
      ignore: ['node_modules'],
    })
  );
  return config;
}